package com.lovo.pay.controller;

import com.lovo.common.result.ResponseResult;
import com.lovo.common.util.MQUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@ResponseResult
@RequestMapping("/pay")
public class PayController {
    @Resource
    private MQUtil mqUtil;
    @GetMapping("/{id}")
    public Object pay(@PathVariable("id") String orderId){
        mqUtil.send("shop.direct.exchange","pay_direct_rk",orderId);
        return null;
    }
}
